package bookstore.database.pojo;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * SaleTable entity. @author MyEclipse Persistence Tools
 */

public class SaleTable implements java.io.Serializable {

	// Fields

	private BigDecimal saleId;
	private Seller seller;
	private Book book;
	private Timestamp addedDate;
	private BigDecimal degree;
	private BigDecimal num;
	private BigDecimal salPrice;

	// Constructors

	/** default constructor */
	public SaleTable() {
	}

	/** full constructor */
	public SaleTable(BigDecimal saleId, Seller seller, Book book,
			Timestamp addedDate, BigDecimal degree, BigDecimal num,
			BigDecimal salPrice) {
		this.saleId = saleId;
		this.seller = seller;
		this.book = book;
		this.addedDate = addedDate;
		this.degree = degree;
		this.num = num;
		this.salPrice = salPrice;
	}

	// Property accessors

	public BigDecimal getSaleId() {
		return this.saleId;
	}

	public void setSaleId(BigDecimal saleId) {
		this.saleId = saleId;
	}

	public Seller getSeller() {
		return this.seller;
	}

	public void setSeller(Seller seller) {
		this.seller = seller;
	}

	public Book getBook() {
		return this.book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public Timestamp getAddedDate() {
		return this.addedDate;
	}

	public void setAddedDate(Timestamp addedDate) {
		this.addedDate = addedDate;
	}

	public BigDecimal getDegree() {
		return this.degree;
	}

	public void setDegree(BigDecimal degree) {
		this.degree = degree;
	}

	public BigDecimal getNum() {
		return this.num;
	}

	public void setNum(BigDecimal num) {
		this.num = num;
	}

	public BigDecimal getSalPrice() {
		return this.salPrice;
	}

	public void setSalPrice(BigDecimal salPrice) {
		this.salPrice = salPrice;
	}

}